/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package domain;

import java.util.Calendar;
import java.util.Random;

/**
 *
 * @author Dell
 */

public class Element {
 
    private long id;
    private String content;
    private boolean bold = false;  
    private boolean underline = false;
    private boolean italic = false;

    public Element() {
    }

    public Element(String content) { 
        Calendar cl = Calendar.getInstance();
        this.content = content;
        this.id = (long)(Math.random()*cl.getTimeInMillis()*5);
        //System.out.println(id);   
        
    }
 
    @Override
    public String toString() {
        return content;
    }
     
    

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id; 
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isBold() {
        return bold;
    }

    public void setBold(boolean bold) {
        this.bold = bold;
    }

    public boolean isUnderline() {
        return underline;
    }

    public void setUnderline(boolean underline) {
        this.underline = underline;
    }

    public boolean isItalic() {
        return italic;
    }

    public void setItalic(boolean italic) {
        this.italic = italic;
    }
    
    
}
